import { api } from "@/request";
import {  httpServer, CreateReportItemProps, QueryReportTypeListProps } from "@/api/api";

// 新增一条举报数据
export const createReportItem : httpServer<CreateReportItemProps> = (data) => {
    return api.post({
        url: `/api/report/complaint`,
        data
    })
}



// 获取举报类型
export const queryReportTypeList : httpServer<QueryReportTypeListProps> = (data) => {
    return api.get({
        url: `/api/dic/queryDic`,
        params: {
            dic_type: data.type
        }
    })
}